package cn.ryh.designpatterndemo.templatemethodpattern;

/**
 * @ClassName MBZ
 * @Description 奔驰
 * @Author RaoYH
 * @Date 2019/4/22
 */
public class MBZ extends CarTemplateMethod {


    @Override
    protected void doSomething() {
        System.out.println("MBZ系列汽车额外功能");
    }

    @Override
    protected void doAnything() {
        System.out.println("MBZ系列汽车默认功能");
    }

    /**
     * 奔驰系列的车默认没有额外功能
     * @return
     */
    @Override
    protected boolean isAlarm() {
        return false;
    }
}
